---
page_title: "cloudflare_account Resource - Cloudflare"
subcategory: ""
description: |-
  Provides a Cloudflare Account resource. Account is the basic resource for
  working with Cloudflare zones, teams and users.
---

# cloudflare_account (Resource)

Provides a Cloudflare Account resource. Account is the basic resource for
working with Cloudflare zones, teams and users.

## Example Usage

```terraform
resource "cloudflare_account" "example" {
  name              = "some-enterprise-account"
  type              = "enterprise"
  enforce_twofactor = true
}
```
<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `name` (String) The name of the account that is displayed in the Cloudflare dashboard.

### Optional

- `enforce_twofactor` (Boolean) Whether 2FA is enforced on the account. Defaults to `false`.
- `type` (String) Account type. Available values: `enterprise`, `standard`. Defaults to `standard`. **Modifying this attribute will force creation of a new resource.**

### Read-Only

- `id` (String) The ID of this resource.

## Import

Import is supported using the following syntax:

```shell
$ terraform import cloudflare_account.example <account_id>
```
